package com.msw.axon.model.single;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import java.util.List;

@Entity
@Data
@Table(name = "t_customer")
public class Customer {

    @Id
    private String id;

    private String name;

    @OneToMany(mappedBy = "customer")
    private List<Order> orderList;
}
